home *** CD-ROM | disk | FTP | other *** search
/ Clickx 75 / Clickx 75.iso / software / expressionweb / expressionwebv3 / ExpressionWeb_en.exe / Setup / WeNoLoc.cab / xweb.XML.deepzoomschema.xsd < prev    next >
Encoding:
Extensible Markup Language  |  2009-06-09  |  12.9 KB  |  269 lines

  1. ∩╗┐<?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://schemas.microsoft.com/deepzoom/2008" xmlns:dz="http://schemas.microsoft.com/deepzoom/2008">
  3.   <xs:complexType name="uint32size">
  4.     <xs:attribute name="Width" type="xs:unsignedLong" use="required">
  5.       <xs:annotation>
  6.         <xs:documentation>
  7.           The width of the image.
  8.         </xs:documentation>
  9.       </xs:annotation>
  10.     </xs:attribute >
  11.     <xs:attribute name="Height" type="xs:unsignedLong" use="required">
  12.       <xs:annotation>
  13.         <xs:documentation>
  14.           The height of the image.
  15.         </xs:documentation>
  16.       </xs:annotation>
  17.     </xs:attribute >
  18.   </xs:complexType>
  19.   <xs:complexType name="uint32rect">
  20.     <xs:attribute name="X" type="xs:unsignedLong" use="required">
  21.       <xs:annotation>
  22.         <xs:documentation>
  23.           X coordinate of the upper-left corner of the rectangle.
  24.         </xs:documentation>
  25.       </xs:annotation>
  26.     </xs:attribute >
  27.     <xs:attribute name="Y" type="xs:unsignedLong" use="required">
  28.       <xs:annotation>
  29.         <xs:documentation>
  30.           Y coordinate of the upper-left corner of the rectangle.
  31.         </xs:documentation>
  32.       </xs:annotation>
  33.     </xs:attribute >
  34.     <xs:attribute name="Width" type="xs:unsignedLong" use="required">
  35.       <xs:annotation>
  36.         <xs:documentation>
  37.           Width of the rectangle.
  38.         </xs:documentation>
  39.       </xs:annotation>
  40.     </xs:attribute>
  41.     <xs:attribute name="Height" type="xs:unsignedLong" use="required">
  42.       <xs:annotation>
  43.         <xs:documentation>
  44.           Height of the rectangle.
  45.         </xs:documentation>
  46.       </xs:annotation>
  47.     </xs:attribute >
  48.   </xs:complexType>
  49.   <xs:element name="Image">
  50.     <xs:annotation>
  51.       <xs:documentation>
  52.         If you are defining a single image (versus a collection of images) for Deep Zoom, this element is the root element of the schema.
  53.       </xs:documentation>
  54.     </xs:annotation>
  55.     <xs:complexType>
  56.       <xs:sequence>
  57.         <xs:element name="Size" type="dz:uint32size" minOccurs="1" maxOccurs="1">
  58.           <xs:annotation>
  59.             <xs:documentation>
  60.               Defines the size of the image in pixels.
  61.             </xs:documentation>
  62.           </xs:annotation>
  63.         </xs:element>
  64.         <xs:element name="DisplayRects" minOccurs="0" maxOccurs="1">
  65.           <xs:annotation>
  66.             <xs:documentation>
  67.               If this element is not present, the image is not sparse - all pixels are available at all levels. Otherwise, you can use the DisplayRect elements to describe all the available pixels.
  68.             </xs:documentation>
  69.           </xs:annotation>
  70.           <xs:complexType>
  71.             <xs:sequence>
  72.               <xs:element name="DisplayRect" minOccurs="0" maxOccurs="unbounded">
  73.                 <xs:annotation>
  74.                   <xs:documentation>
  75.                     One or more of these elements are used to describe available pixels.
  76.                   </xs:documentation>
  77.                 </xs:annotation>
  78.                 <xs:complexType>
  79.                   <xs:sequence>
  80.                     <xs:element name="Rect" type="dz:uint32rect" minOccurs="0" maxOccurs="1">
  81.                       <xs:annotation>
  82.                         <xs:documentation>
  83.                           Defines the rectangle to be displayed.
  84.                         </xs:documentation>
  85.                       </xs:annotation>
  86.                     </xs:element>
  87.                   </xs:sequence>
  88.                   <xs:attribute name="MinLevel" type="xs:unsignedLong" use="required">
  89.                     <xs:annotation>
  90.                       <xs:documentation>
  91.                         Index of the lowest level at which the rectangle is displayed.
  92.                       </xs:documentation>
  93.                     </xs:annotation>
  94.                   </xs:attribute>
  95.                   <xs:attribute name="MaxLevel" type="xs:unsignedLong" use="required">
  96.                     <xs:annotation>
  97.                       <xs:documentation>
  98.                         Index of the highest level at which the rectangle is displayed.
  99.                       </xs:documentation>
  100.                     </xs:annotation>
  101.                   </xs:attribute>
  102.                 </xs:complexType>
  103.               </xs:element>
  104.             </xs:sequence>
  105.           </xs:complexType>
  106.         </xs:element>
  107.       </xs:sequence>
  108.       <xs:attribute name="TileSize" type="xs:unsignedLong" use="required">
  109.         <xs:annotation>
  110.           <xs:documentation>
  111.             The tile size of the level in pixels. Note that these have to be square. Unlike Collection.TileSize, the TileSize for an Image does not have to be a power of 2 value.
  112.           </xs:documentation>
  113.         </xs:annotation>
  114.       </xs:attribute>
  115.       <xs:attribute name="Overlap" type="xs:unsignedLong" use="required">
  116.         <xs:annotation>
  117.           <xs:documentation>
  118.             The tile overlap on all four sides of the tiles. A value of 0 is allowed for Deep Zoom images.
  119.           </xs:documentation>
  120.         </xs:annotation>
  121.       </xs:attribute>
  122.       <xs:attribute name="Format" type="xs:string" use="required">
  123.         <xs:annotation>
  124.           <xs:documentation>
  125.             This defines the file format of the tiles as an extension.
  126.           </xs:documentation>
  127.         </xs:annotation>
  128.       </xs:attribute>
  129.     </xs:complexType>
  130.   </xs:element>
  131.   <xs:element name="Collection">
  132.     <xs:annotation>
  133.       <xs:documentation>
  134.         If you are defining a collection, this element is the root element of schema.
  135.       </xs:documentation>
  136.     </xs:annotation>
  137.     <xs:complexType>
  138.       <xs:sequence>
  139.         <xs:element name="Items" minOccurs="0" maxOccurs="1">
  140.           <xs:annotation>
  141.             <xs:documentation>
  142.               Contains the items in the collection.
  143.             </xs:documentation>
  144.           </xs:annotation>
  145.           <xs:complexType>
  146.             <xs:sequence>
  147.               <xs:element name="I" minOccurs="0" maxOccurs="unbounded">
  148.                 <xs:annotation>
  149.                   <xs:documentation>
  150.                     Defines an image in the collection.
  151.                   </xs:documentation>
  152.                 </xs:annotation>
  153.                 <xs:complexType>
  154.                   <xs:sequence>
  155.                     <xs:element name="Size" type="dz:uint32size" minOccurs="1" maxOccurs="1">
  156.                       <xs:annotation>
  157.                         <xs:documentation>
  158.                           Size of the image in pixels.
  159.                         </xs:documentation>
  160.                       </xs:annotation>
  161.                     </xs:element>
  162.                     <xs:element name="Viewport" minOccurs="0" maxOccurs="1">
  163.                       <xs:complexType>
  164.                         <xs:annotation>
  165.                           <xs:documentation>
  166.                             Location of the image in the viewport.
  167.                           </xs:documentation>
  168.                         </xs:annotation>
  169.                         <xs:attribute name="Width" type="xs:double" use="required">
  170.                           <xs:annotation>
  171.                             <xs:documentation>
  172.                               The width of the area of the image displayed. This value is in logical coordinates. For example a value of 1 displays the entire image (no zoom), a value of 0.5 is 200% zoomed in and a value of 0 is completely zoomed (user cannot see the image at all). A value above 1 is zooming out from the image. For example, a value of 2 means that the image will take up half the size of the MultiScaleSubImage control area (50% zoom).
  173.                             </xs:documentation>
  174.                           </xs:annotation>
  175.                         </xs:attribute>
  176.                         <xs:attribute name="X" type="xs:double" use="required">
  177.                           <xs:annotation>
  178.                             <xs:documentation>
  179.                               The left coordinate of the rectangular area of the image to be displayed. The coordinates of the point are in local coordinates (0-1) relative to the displayed image width.
  180.                             </xs:documentation>
  181.                           </xs:annotation>
  182.                         </xs:attribute>
  183.                         <xs:attribute name="Y" type="xs:double" use="required">
  184.                           <xs:annotation>
  185.                             <xs:documentation>
  186.                               The top coordinate of the rectangular area of the image to be displayed. The coordinates of the point are in local coordinates (0-1) relative to the displayed image width.
  187.                             </xs:documentation>
  188.                           </xs:annotation>
  189.                         </xs:attribute>
  190.                       </xs:complexType>
  191.                     </xs:element>
  192.                   </xs:sequence>
  193.                   <xs:attribute name="N" type="xs:unsignedLong" use="required">
  194.                     <xs:annotation>
  195.                       <xs:documentation>
  196.                         This is the number of the item (Morton Number) where it appears in the tiles.
  197.                       </xs:documentation>
  198.                     </xs:annotation>
  199.                   </xs:attribute>
  200.                   <xs:attribute name="Id" type="xs:unsignedLong" use="required">
  201.                     <xs:annotation>
  202.                       <xs:documentation>
  203.                         This is a number associated with the item. It could be a database key or any other number that you will find useful. By default itΓÇÖs the same as I.N.
  204.                       </xs:documentation>
  205.                     </xs:annotation>
  206.                   </xs:attribute>
  207.                   <xs:attribute name="Source" type="xs:string">
  208.                     <xs:annotation>
  209.                       <xs:documentation>
  210.                         This is the path to the .dzi file associated with this item in the collection. It can be absolute or relative.
  211.                       </xs:documentation>
  212.                     </xs:annotation>
  213.                   </xs:attribute>
  214.                   <xs:attribute name="IsPath" type="xs:boolean" default="true" use="optional">
  215.                     <xs:annotation>
  216.                       <xs:documentation>
  217.                         Determines whether the Source is a path. Always 1 for Deep Zoom images so this attribute does not need to be included.
  218.                       </xs:documentation>
  219.                     </xs:annotation>
  220.                   </xs:attribute>
  221.                   <xs:attribute name="Type" type="xs:string" default="ImagePixelSource" use="optional">
  222.                     <xs:annotation>
  223.                       <xs:documentation>
  224.                         The pixel source type. Always ImagePixelSource for Deep Zoom images so this attribute does not need to be included.
  225.                       </xs:documentation>
  226.                     </xs:annotation>
  227.                   </xs:attribute>
  228.                 </xs:complexType>
  229.               </xs:element>
  230.             </xs:sequence>
  231.           </xs:complexType>
  232.         </xs:element>
  233.       </xs:sequence>
  234.       <xs:attribute name="MaxLevel" type="xs:unsignedByte" use="required">
  235.         <xs:annotation>
  236.           <xs:documentation>
  237.             The maximum pyramid level the tiles are stored at. This must be less than or equal to log2(TileSize) - typically equal to this value or one less.
  238.           </xs:documentation>
  239.         </xs:annotation>
  240.       </xs:attribute>
  241.       <xs:attribute name="TileSize" type="xs:unsignedLong" use="required">
  242.         <xs:annotation>
  243.           <xs:documentation>
  244.             The size of the tiles. Note they have to be square. This is true for both images and collections. However, for collections, the TileSize also has to be a power of 2 (e.g. 128, 256, 512, etc).
  245.           </xs:documentation>
  246.         </xs:annotation>
  247.       </xs:attribute>
  248.       <xs:attribute name="Format" type="xs:string" use="required">
  249.         <xs:annotation>
  250.           <xs:documentation>This defines the file format of the tiles.</xs:documentation>
  251.         </xs:annotation>
  252.       </xs:attribute>
  253.       <xs:attribute name="Quality" type="xs:float" default="1" use="optional">
  254.         <xs:annotation>
  255.           <xs:documentation>
  256.             Used when creating thumbnail tiles, from 0 to 1. 1 is highest quality, 0 is lowest. Generally this value should be 0.8 or higher; however, for Deep Zoom this does not matter since collections are read-only.
  257.           </xs:documentation>
  258.         </xs:annotation>
  259.       </xs:attribute>
  260.       <xs:attribute name="NextItemId" type="xs:unsignedLong" use="required">
  261.         <xs:annotation>
  262.           <xs:documentation>
  263.             Gets the count of items in the collection; however this does not actually matter for Deep Zoom since collections are read only.
  264.           </xs:documentation>
  265.         </xs:annotation>
  266.       </xs:attribute>
  267.     </xs:complexType>
  268.   </xs:element>
  269. </xs:schema>